package com.crm.util;

import cn.hutool.core.util.ObjectUtil;
import com.crm.commons.exception.BusinessException;

import static com.crm.commons.exception.enumVo.BussinessExceptionEnum.PARAM_VALID;

/**
 * @author junxian.dou
 * @Package：com.crm.util
 * @Project：springboot-crm
 * @name：ObjectValidte
 * @Date：2024/12/30 16:39
 * @Filename：ObjectValidte
 * @verson 1.0.0
 * @desc
 */
public class ObjectValidate {

    public static void ValidateIsEmpty(Object o){
        if (ObjectUtil.isEmpty(o) ) throw new BusinessException(PARAM_VALID);
    }
}
